<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <include file="./Public/Admin/header.html" />
</head>
<body>

<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">

                <div class="box">
                    <div class="box-title">
                        <div class="span10">
                            <h3><i class="icon-edit"></i>授权设置</h3>
                        </div>
                        <div class="span2"><a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                    </div>

                    <div class="box-content">
                        <div class="alert">
                            <strong>温馨提示：</strong><br />
                            1. 要在微信公众平台<strong>“开发模式”</strong>下使用自定义菜单，首先要在公众平台<strong>申请</strong>自定义菜单使用的<strong>AppId和AppSecret</strong>，然后填入下边表单。<br>
                            2. 提交完id和密钥后，可以在【菜单设置】中设置各个菜单项，然后进行发布，您的微信公众号便支持自定义菜单了。<br>
                            3. 公众平台规定，<strong>菜单发布<span class="red bold">24小时后生效</span></strong>。如果为新增粉丝，则可马上看到菜单。
                        </div>
                        <form action="{:U('Admin/Wechat/menuset')}" method="post" class="form-horizontal form-validate">
                            <div class="control-group">
                                <label class="control-label" for="appid">应用id:</label>
                                <div class="controls">
                                    <input type="text" class="span4" id="appid" name="appid" value="{$info['appid']}" data-rule-required="true" data-rule-maxlength="100">
                                    <span class="maroon">*</span>
                                    <span>公众平台申请到的AppId</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label" for="appsecret">应用密钥:</label>
                                <div class="controls">
                                    <input type="text" class="span4" id="appsecret" name="appsecret" value="{$info['appsecret']}" data-rule-required="true" data-rule-maxlength="200">
                                    <span class="maroon">*</span>
                                    <span>公众平台申请到的AppSecret</span>
                                </div>
                            </div>

                            <div class="form-actions">
                                <input type="hidden" name="wechatrecid" id="aid" value="{$info['wechatrecid']}">
                                <button id="bsubmit" type="submit" data-loading-text="提交中..." class="btn btn-primary">保存</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

</body>
</html>
